package com.example.demo.entity;

import javax.persistence.*;
import java.util.Date;

@Table(name = "role_privilege")
public class RolePrivilege {


    @Id
    @Column(name = "role_id")
    private int role_id;

    @Id
    @Column(name = "privilege_id")
    private int privilege_id;


    @Column(name = "created")
    private Date created;

    @Column(name = "updated")
    private Date updated;


    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public int getPrivilege_id() {
        return privilege_id;
    }

    public void setPrivilege_id(int privilege_id) {
        this.privilege_id = privilege_id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    @Override
    public String toString() {
        return "RolePrivilege{" +
                "role_id=" + role_id +
                ", privilege_id=" + privilege_id +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }
}
